package com.javajun.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.javajun.custom.BaseService;
import com.javajun.entity.UserRole;
import com.javajun.repository.UserRoleRepository;

@Service
public class UserRoleService extends BaseService<UserRole, Integer>{

    @Autowired
    private UserRoleRepository userRoleRepository;
    
    public UserRole findByCode(String code) {
        return userRoleRepository.findByCode(code); 
    }

}
